//
// Created by Asus on 2025/6/2.
//

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main(int argc, char *argv[]) {
    vector<int> v;
    for (int i = 0; i < 10; i++) {
        v.push_back(i);
    }
    bool ret = binary_search(v.begin(), v.end(), 7);
    if (ret)
    {
        cout << "找到了" << endl;
    }
    else
    {
        cout << "未找到" << endl;
    }
}
